added database info and queries