added framework for database