create groups and read out groups from db