added database fix bug in method params