added max string sizes into database class