Database migrations added, database *.* relations implementation