Updated databaseAPI to handle strings

Updated database API