Adding some methods, database schema