adding database integration