Add more database functions including update and get