sync 0.4

Bug with database when utilizing it.