Look up PCI (Payment Card Industry) compliance.
If you are thinking of storing credit card information to your database, regardless of how long it will be saved to the database, the database server and site will need to comply to PCI standards of security.