Database configuration, added migrations