added record, some DB methods with sql