Corrected DB script
corrected time format, corrected db primary keys