initial backend

added initial basic database php classes