Added database settings and schema definitiion.