Fixed build error with database on apphb