added backup for manual SQL queries
various bugfixed including new picture upload in edit profile