added split function for reading columns from db