switching things to sql alchemey, breaking loads of stuff in process