run tests for sqlite, mysql, posgresql databases

mysql supports milliseconds in datetime fields since version 5.6. For passing all tests we should add 'id'  field in ordering fields to determine correct order, add time.sleep(1) statements in some tests.