now loggs to mysql