This is pretty simple to do but you should know that it is not an accepted standard to store credit card or other personal billing info directly in your db unencrypted. Depending on where you are this may even be illegal.
The idea with a checkout that places the order later like this would be to just have an insert occur from the checkout form and send the user to a thank you page of some type. You can then just query your db for the order details and process the order later. The rest of the checkout is not needed.
I would suggest that you do a call back to the user to gather the more sensitive details as these should not be stored in your db in such a way that you can pass them to your payment processing software or terminal.