Support for db authentication
Changing order to parameters
Using insert method instead to save