Database stuff synchronization