Fix insert timestamps. Add tests to coursedatabase module.