Sql schema for application