Empty database before reseeding
Fix some compiler warnings