adding database structure