Finish database schema