Fixed sql errors for reminders/rent payment