Simple database engine