version 1.0 no mySql, abstraction could be better