Added suppport for half hours in database