Add database testing
Add params options to database
Reorder variables
Add SQL