alloc page now works (with database)