Fix railroad and db schemas