move database configuration to ext directory