adding migrations like a boss. Fixing database connection bug