changed the db migrate so it treats the type correctly