Added PBS feature to DB (-l)
MOved partition logic to utils